<link rel="stylesheet" href="lib/codemirror/4.1/lib/codemirror.css">
<link rel="stylesheet" href="app/collection/css/collection.css"/>
<div class="update_main">
    <div class="row">
        <div class="col-sm-6">
            <label for="update_docType">文档类型：</label>
            <select id="update_docType" ng-model="update_docType" class="form-control" ng-change="changeDocType()">
                <option ng-value="DOC_TYPE_JSON">{{DOC_TYPE_JSON}}</option>
                <option ng-value="DOC_TYPE_XML">{{DOC_TYPE_XML}}</option>
            </select>
            <label for="update_overwrite" style="margin-left: 20px;">是否覆盖：</label>
            <input type="checkbox" id="update_overwrite" ng-model="update_overwrite" />
        </div>
        <div class="col-sm-6" style="vertical-align: middle;">
            <label for="result_editor">更新结果：</label>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <textarea id="data_editor" name="data_editor" ng-model="update_doc"></textarea>
        </div>
        <div class="col-sm-6">
            <textarea id="result_editor" name="result_editor"></textarea>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="row update_toolbar col-sm-12">
        <button type="button" class="btn btn-primary" ng-click="update()">提交</button>
        <input type="checkbox" id="update_commit" ng-model="update_commit"/> <label for="update_commit">是否提交</label>
    </div>
</div>